/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.nxlv2.nomad.accessdb.dao;

import com.nxlv2.nomad.businessobjects.Demande;
import com.nxlv2.nomad.businessobjects.DetailDemande;
import java.util.List;

/**
 *
 * @author Nastasia
 */
public interface IDemandeDao {
    void saveDemande(Demande demande) throws DAOException;
    void deleteDemande(int id) throws DAOException;
    void updateDemande(Demande demande) throws DAOException;
    List<Demande> findDemandesById(int id) throws DAOException;
    int getNextId() throws DAOException;
    
    List<DetailDemande> getDetailDemandesParDemande(Demande demande) throws DAOException;
    List<DetailDemande> getDetailDemandesMajParDemande(Demande demande) throws DAOException;
    void lierDetailDemandeADemande(DetailDemande detailDemande, Demande demande) throws DAOException;
}
